﻿using MvcContrib.Interfaces;

namespace ScrumBox.Library.InversionOfControl
{
    public class IoC
    {
        private static IDependencyResolver _resolver;

        public static void Initialize(IDependencyResolver resolver)
        {
            _resolver = resolver;
        }

        public static T GetImplementationOf<T>()
        {
            return _resolver.GetImplementationOf<T>();
        }
    }
}